package com.example.bilibili_miaosha.config;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * @ClassName AccessLimit
 * @Description 自定义注解，设置接口限流
 * @Author 川
 * @Date 2022/4/9 15:36
 * @Version 1.0
 **/
@Retention(RetentionPolicy.RUNTIME)//运行时
@Target(ElementType.METHOD)//方法上
public @interface AccessLimit {

    int second();

    int maxCount();

    boolean needLogin() default true;
}
